﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace CADTool.FIleReadWrite
{
    public class FileWrite
    {
        /// <summary>
        /// 写txt文件
        /// </summary>
        /// <param name="wordsLine">文本</param>
        /// <param name="fileName">文件路径及文件名称</param>
        public static void WriteLine(string wordsLine,string fileName)
        {
            FileStream fileStream = new FileStream(fileName,FileMode.Append,FileAccess.Write);
            StreamWriter sw = new StreamWriter(fileStream);
            sw.WriteLine(wordsLine);
            sw.Close();
        }

    }
}
